// https://www.jianshu.com/p/e7e1bced6890

// https://www.jianshu.com/p/4d5e712594b4
// https://bloclibrary.dev/#/whybloc
// https://pub.dev/packages/bloc

// Reactive Programming - Streams - BLoC
// https://www.didierboelens.com/2018/08/reactive-programming-streams-bloc/

import 'package:flutter/material.dart';

import 'bloc_body.dart';

class BlocPage extends StatefulWidget {
  final Map<String, dynamic> arguments;
  BlocPage({Key key, this.arguments}) : super(key: key);

  @override
  _BlocPageState createState() => _BlocPageState();
}

class _BlocPageState extends State<BlocPage> {
  @override
  Widget build(BuildContext context) {
    return CounterProvider(
      bloc: CounterBloc(),
      child: Scaffold(
        appBar: AppBar(
          title: Text('BlocPage'),
        ),
        body: BlocBody(),
      ),
    );
  }
}
